<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加商品</title>
<link
	href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
	rel="stylesheet">
	<script src="https://code.jquery.com/jquery.js"></script>
<!-- 导入JQuery方便使用ajax插件 -->
<script
	src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- 导入bootstrap核心js文件 -->
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>                        
      </button>
      <a class="navbar-brand" id="top" style='padding-left:300px;color:red' href="/ProfessionalDesign/login">亲，请登录</a>
      
    </div>
    <div class="collapse navbar-collapse" id="myNavbar">
      <ul class="nav navbar-nav" style="padding-left:100px">
        <li><a href="/ProfessionalDesign/sign">免费注册</a></li>
        <li><a href="/ProfessionalDesign/homepage">购物主页</a></li>
        <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">我的<span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">我的信息</a></li>
                <li><a href="#">订单信息</a></li>
              </ul>
            </li>
        <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">购物车 <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li role="separator" class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">收藏夹 <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">收藏的店铺</a></li>
                <li><a href="#">收藏的商品</a></li>
              </ul>
            </li>
      </ul>
          <ul class="nav navbar-nav navbar-right" style="padding-right:300px">
            <li class="active"><a href="../navbar/">商品分类</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">商家中心<span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">已卖出的宝贝</a></li>
                <li><a href="#">免费开店</a></li>
              </ul>
            </li>
          </ul>
    </div>
  </div>
</nav>
 
<form class="container p-5 my-5 border" action="/ProfessionalDesign/addGood" enctype="multipart/form-data" method="post">
	<div class="mb-3 mt-3">
    <label for="shop_id" class="form-label">店铺编号：</label>
    <input type="text" class="form-control" placeholder="${shop_id}" readonly name="shop_id" value="${shop_id}">
  	</div>
    <label for="g_imagefile" class="form-label">商品图片：</label>
    <input type="file" name="g_imagefile"/>
  <div class="mb-3">
    <label for="good_name" class="form-label">商品名称：</label>
    <input type="text" class="form-control" id="good_name" name="good_name" placeholder="请输入商品名称">
  </div>
  <div class="mb-3">
    <label for="number" class="form-label">商品库存数：</label>
    <input type="text" class="form-control" id="number" placeholder="请输入商品名称" name="number">
  </div>
  <div class="mb-3">
    <label for="price" class="form-label">商品价格：</label>
    <input type="text" class="form-control" id="price" placeholder="请输入商品名称" name="price">
  </div>
  <div class="mb-3">
    <label for="good_size" class="form-label">商品规格：</label>
    <input type="text" class="form-control" id="good_size" placeholder="请输入商品名称" name="good_size">
  </div>
  <div class="mb-3">
    <label for="type" class="form-label">商品类型：</label>
    <input type="text" class="form-control" id="type" placeholder="请输入商品名称" name="type">
  </div>
  <label for="good_desc">商品描述：</label>
  <textarea class="form-control" rows="5" id="good_desc" name="good_desc"></textarea>
  <button type="submit" class="btn btn-primary">商品上架</button>
</form>

<div class="jumbotron text-center" style="margin-top:100px;margin-bottom:0">
  <br>
  <p>© 2022 ProfessionalDesign.com 版权所有</p>
  <a>关于我们</a>|
  <a>合作伙伴</a>|
  <a>营销中心</a>|
  <a>联系客服</a>|
  <a>开放平台</a>|
  <a>诚征英才</a>|
  <a>联系我们</a>|
  <a>网站地图</a>|
  <a>法律声明及隐私权政策</a>
</div>
</body>
<style>

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: red;
}
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
    color: red;
}

</style>
<script>
$(function(){
if(${shop_id!=null}){
	$("#top").html('尊贵的店家'+'"'+'${shop_name}'+'"'+'欢迎您');
}else{
	$("a").attr("href","${pageContext.request.contextPath}/login");
}
})
</script>
</html>